--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit d4b458745b3ce41082e8b686fb04754a24883b9a
Parents : a1aa054
Author : Mark Qvist <mark@unsigned.io>
Date : 2023-10-26T20:49:58+02:00
Updated keyboard shortcuts
Changes
Diff
diff --git a/sbapp/main.py b/sbapp/main.py
index 19fbecdd..d5cd9db0 100644
--- a/sbapp/main.py
+++ b/sbapp/main.py
@@ -760,6 +760,8 @@ class SidebandApp(MDApp):
if len(modifiers) > 0 and modifiers[0] == 'ctrl' and (text == "w"):
if self.root.ids.screen_manager.current == "conversations_screen":
self.quit_action(self)
+ elif self.root.ids.screen_manager.current == "map_settings_screen":
+ self.close_sub_map_action()
elif self.root.ids.screen_manager.current == "object_details_screen":
self.object_details_screen.close_action()
else:
@@ -821,8 +823,10 @@ class SidebandApp(MDApp):
self.close_sub_hardware_action()
elif self.root.ids.screen_manager.current == "hardware_serial_screen":
self.close_sub_hardware_action()
- if self.root.ids.screen_manager.current == "object_details_screen":
+ elif self.root.ids.screen_manager.current == "object_details_screen":
self.object_details_screen.close_action()
+ elif self.root.ids.screen_manager.current == "map_settings_screen":
+ self.close_sub_map_action()
else:
self.open_conversations(direction="right")
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────